1b9114
@@ -79,7 +79,9 @@
public ExplainWork(Path resFile,
     this.fetchTask = fetchTask;
     this.astTree = astTree;
     this.analyzer = analyzer;
-    this.inputs = analyzer.getInputs();
+    if (analyzer != null) {
+      this.inputs = analyzer.getInputs();
+    }
     this.extended = extended;
     this.formatted = formatted;
     this.dependency = dependency;
